projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abae13b
)
(redisplay_window): Before altering lpoint,
author
Richard M. Stallman
<rms@gnu.org>
Sat, 25 Dec 1993 00:05:02 +0000
(
00:05
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 25 Dec 1993 00:05:02 +0000
(
00:05
+0000)
make sure the buffer it pertains to is the one being displayed.
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index bb007713f6e5db8b4e2c4190679a8fc51f9d50d7..7b554b6f33119920158f565f8c085620349252b9 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-1095,7
+1095,8
@@
redisplay_window (window, just_this_one)
Fset_marker (w->pointm, make_number (point), Qnil);
else
{
- lpoint = point;
+ if (current_buffer == old)
+ lpoint = point;
FRAME_CURSOR_X (f) = max (0, pos.hpos) + XFASTINT (w->left);
FRAME_CURSOR_Y (f) = pos.vpos + XFASTINT (w->top);
}